﻿<UserControl x:Class="Ops.Mpc.ExampleApplication.Navigations.NavigationTargetControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:presenters="clr-namespace:Ops.Mpc.Presenters;assembly=Ops.Mpc"
    xmlns:controllers="clr-namespace:Ops.Mpc.Controllers;assembly=Ops.Mpc"   
    xmlns:states="clr-namespace:Ops.Mpc.States;assembly=Ops.Mpc"   
    xmlns:simplebindings="clr-namespace:Ops.Mpc.ExampleApplication.SimpleBindings"   
    xmlns:navigations="clr-namespace:Ops.Mpc.ExampleApplication.Navigations"
    xmlns:datatemplatebindings="clr-namespace:Ops.Mpc.ExampleApplication.DataTemplateBindings" 
    xmlns:datapaging="clr-namespace:Ops.Mpc.ExampleApplication.DataPaging" 
    xmlns:polling="clr-namespace:Ops.Mpc.ExampleApplication.Polling"         
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:local="clr-namespace:Ops.Mpc.ExampleApplication" 
    xmlns:localmodels="clr-namespace:Ops.Mpc.ExampleApplication.Models"          
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid>
        <presenters:Presenter x:Name="NavigationTargetPresenter" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
            <controllers:Controller>
                <controllers:Controller.StateTransitions>
                    <states:StateTransition From="*" To="*" Transition="Right"/>
                </controllers:Controller.StateTransitions>
                <controllers:Controller.States>
                    <states:State ItemName="DefaultState">
                        <states:StateTemplate>
                            <TextBlock Text="Welcome" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </states:StateTemplate>
                    </states:State>
                    <states:State ItemName="SimpleBindingsState">
                        <states:StateTemplate>
                                <simplebindings:SimpleBindingsControl Width="300" Height="300" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </states:StateTemplate>
                    </states:State>
                    <states:State ItemName="DataTemplateBindingsState">
                        <states:StateTemplate>
                                <datatemplatebindings:DataTemplateBindingsControl Width="300" Height="300" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </states:StateTemplate>
                    </states:State>
                    <states:State ItemName="DataPagingState">
                        <states:StateTemplate>
                                <datapaging:DataPagingControl Width="600" Height="500" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </states:StateTemplate>
                    </states:State>
                    <states:State ItemName="PollingState">
                        <states:StateTemplate>
                                 <polling:PollingControl Height="500" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                       </states:StateTemplate>
                    </states:State>
                </controllers:Controller.States>
            </controllers:Controller>
        </presenters:Presenter>
     </Grid>
</UserControl>
